package com.sgj.gulimall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: Guoji Shen
 * @Date: 2021/9/2 10:29
 */
@Data
@Component
@ConfigurationProperties(prefix = "gulimall.thread")
public class ThreadPoolConfigProperties {

    /**
     * 核心大小
     */
    private Integer coreSize;

    /**
     * 最大大小
     */
    private Integer maxSize;

    /**
     * 休眠时长
     */
    private Integer keepAliveTime;
}